#include "fstats.h"


int main(int argc, char* argv[]) 
{
	{									//Preliminary procedures
		input_file.open(argv[1], ios::in);
		output_file.open(argv[2], ios::out);
		start_tour = atoi(argv[3]);
		if (!input_file) cout << "Unable to open input file." << endl;
		if (!output_file) cout << "Unable to open output file." << endl;
	}
	{									//Parse files and proceed resulting matrix
		parsing(matchList, input_file);
		normalizeResultingMatrix (resultingMatrix);
		printing(resultingMatrix, output_file);
	}
	//{									//Graphics
		//glutInit(&argc, argv); 
		//glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);   
		//glutInitWindowSize (30*resultingMatrix[0].size(), 30*resultingMatrix[0].size());
		//glutInitWindowPosition (0,0);
		//glutCreateWindow ("FSTATS viewer"); 			
		//glutDisplayFunc(display); 						
		//init ();
		//glutReshapeFunc(reshape);
		//glutMainLoop(); 								
	//}
	{									//Finishing procedures
		input_file.close();
		output_file.close();
		cout << "Successfull." << endl;
	}
	return 0;
}
